package com.first.nell.data

import com.first.nell.enums.DialogShowPageEnum

data class RevObjDialogConfig(
    /** 弹窗模式 */
    val mode: String,
    /** 条件 */
    val condition: String? = "",
    /** 优先级 */
    val level: Long? = 0L,
    /** 图标 */
    val icon: String? = "",
    /** id */
    val id: String,
    /** 展示页面 */
    val page: String,
    /** 弹窗标题 */
    val title: String? = "",
    /** 弹窗内容 */
    val content: String? = "",
    /** 弹窗生效日期 */
    val startDate: String? = "",
    /** 弹窗失效日期 */
    val endDate: String? = ""
) {
    fun isFirstNellHomeFirstNellPop(): Boolean {
        return page.equals(DialogShowPageEnum.HOME.name, true)
    }

    fun isFirstNellApplyFirstNellPop(): Boolean {
        return page.equals(DialogShowPageEnum.APPLY.name, true)
    }

    fun isFirstNellReviewFirstNellPop(): Boolean {
        return page.equals(DialogShowPageEnum.REVIEW.name, true)
    }

    fun isFirstNellLoaningFirstNellPop(): Boolean {
        return page.equals(DialogShowPageEnum.LOANING.name, true)
    }

    fun isFirstNellRepayFirstNellPop(): Boolean {
        return page.equals(DialogShowPageEnum.REPAY.name, true)
    }
}